package collection;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

public class LestDemo {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("one");
        list.add("two");
        list.add("three");
        String e = list.get(2);
        System.out.println(e);
        Collections.reverse(list);
        System.out.println(list);
    }

}
